package asia.doing.service.impl;

import asia.doing.dao.impl.ArticleDaoImpl;
import asia.doing.dto.PageRequestDTO;
import asia.doing.dto.PageResponseDTO;
import asia.doing.model.Article;
import asia.doing.service.IArticleService;

public class ArticleServiceImpl implements IArticleService {

    private ArticleDaoImpl articleDao;

    public ArticleDaoImpl getArticleDao() {
        return articleDao;
    }

    public void setArticleDao(ArticleDaoImpl articleDao) {
        this.articleDao = articleDao;
    }

    @Override
    public PageResponseDTO<Article> PageArticle(PageRequestDTO<Article> pageRequestDTO) {
        return articleDao.PageArticle(pageRequestDTO);
    }
}
